Skip to main content

Delete Credentials

AutomatR.DefaultActivities.WindowsCredentials.DeleteCredentials

The "Delete Credentials" activity in AutomatR is designed to remove the credentials for a specified target from the Windows Credential Manager. It returns a boolean value indicating the success or failure of the operation. This activity is useful for managing stored credentials and enhancing security by deleting unnecessary credentials.

Properties

NameDescription
Input
Target NameRepresents the network address to be used in conjunction with the provided credentials. This should be the target system or service for which the credentials are being stored. String variables containing the target name.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete Credentials" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 5 seconds, enter 5.
Output
ResultA boolean variable that indicates whether the process of deleting the given target's credentials from the Windows Credential Manager was successful. The value "true" indicates success, and "false" indicates failure. Boolean variables to store the operation result.

How to use:

  1. Drag and drop the "Delete Credentials" activity onto the workflow.
  2. Specify the target name for which the credentials should be deleted.
  3. Optionally, set the delay for the execution.
  4. Execute the workflow to delete the specified target's credentials from the Windows Credential Manager.

Example:

Consider an example where the "Delete Credentials" activity is used to remove stored credentials for a network address:

Delete Credentials:
Display Name: "Remove Network Credentials"
Target Name: "\\server\share"
Result: isDeletionSuccessful

In this example, the activity deletes the credentials associated with the network address "\server\share" from the Windows Credential Manager. The result of the operation (success or failure) is stored in the Boolean variable "isDeletionSuccessful" for further handling in the workflow.

Note: Ensure that the target name is specified before executing this activity.